
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include <unistd.h>
/********************
add header file by LHS
*********************/
#include "seft_struct.h"
#include "seft_util.h"
#include "ftp.h"
#include "rabbitmq.h"
#include "sw_perform.h"

/********************
add header file by LHS
*********************/

extern pthread_mutex_t netInterface_mutex ;
extern pthread_cond_t  netInterface_cond  ;
extern int global_interface;

void *Interface(p_seft_plate_encode_t parameter)
{
	printf("enter the interface program\n");

	while(1)
	{
		pthread_mutex_lock(&netInterface_mutex);		
		if(global_interface==0)
		{
			pthread_cond_wait(&netInterface_cond,&netInterface_mutex);
			printf("*********************pthread wait end\n");
		}
			
			printf("perform my program\n");
			seft_sem_writer_perform(parameter);
			global_interface=0;
               pthread_mutex_unlock(&netInterface_mutex);
	}

	
}

